package hn.cch.controller;


import hn.cch.spring.SpringConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/test/")
public class TestController {

    private Logger logger = LoggerFactory.getLogger(TestController.class);


    @RequestMapping("demo")
    @ResponseBody
    public String demo(){
        logger.info("test.demo");
        return "test";
    }
}